package com.ncr.travel.appmgr.client.service;

import com.google.inject.Inject;
import com.ncr.nep.dashboardcore.rest.client.HTTPRequest;
import com.ncr.nep.dashboardcore.rest.client.JSONCallback;
import com.ncr.nep.dashboardcore.rest.client.RESTService;
import com.ncr.travel.appmgr.client.ConfigResources;
import com.ncr.travel.appmgr.client.UrlBuilder;

public class AppManagerWebServiceImpl extends RESTService implements AppManagerWebService {
	
	@Inject
	public AppManagerWebServiceImpl() {
		super(UrlBuilder.createUrl(ConfigResources.INSTANCE.initialConfiguration().getText()).getBaseURL());
	}

	public void doPost(String subpath, HTTPRequest request, JSONCallback<?> callback) {
		post(subpath, request, callback);
	}

	public void doGet(String subpath, 
            HTTPRequest request, JSONCallback<?> callback) {
		get(subpath, request, callback);
	}
}
